package top.rinpsi;


public enum Color {
    RED(1,"red"),GREEN(2,"green"),BLUE(3,"blue");
    int index;
    String type;
    Color(int index, String type){
        this.index=index;
        this.type=type;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return index+":"+type;
    }
}
